package com.hexinfo.dmpro.admin.model;

import cn.hutool.core.util.ObjectUtil;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @ClassName UserAvatar
 * @Describe
 * @Author ml.wang
 * @Date 2021-06-17
 */
@Data
public class UserAvatar {

    public UserAvatar() {};

    public UserAvatar(UserAvatar userAvatar, String realName, String path, String size) {
        this.id = ObjectUtil.isNotEmpty(userAvatar) ? userAvatar.getId() : null;
        this.realName = realName;
        this.path = path;
        this.size = size;
    }

    private Long id;

    private String realName;

    private String path;

    private String size;

    private Timestamp createTime;
}
